package com.cs.study.homework._0217;

public class TestStaticDemo1 {
    public static void main(String[] args) {
        staticMethod();
    }

    static TestStaticDemo1 ts = new TestStaticDemo1();

    static {
        System.out.println("静态代码块");
    }

    {
        System.out.println("构造代码块");
    }

    public TestStaticDemo1() {
        System.out.println("无参构造器");
        System.out.println("a=" + a + ",b=" + b);
    }

    public static void staticMethod() {
        System.out.println("静态成员方法");
    }

    int a = 666;
    static int b = 777;
}

